package crp.core.portal.domain.services;

import crp.core.portal.domain.models.PortalSectionConfig;
import crp.core.portal.domain.models.PortalSectionLoadStrategy;

import javax.enterprise.context.ApplicationScoped;
import java.util.List;

@ApplicationScoped
public class PortalSectionConfigBuilder {

    public PortalSectionConfig build(
            PortalSectionLoadStrategy loadStrategy,
            List<String> fixedCourseIds){
        PortalSectionConfig config = new PortalSectionConfig();
        config.setLoadStrategy(loadStrategy);
        config.setFixedCourseIds(fixedCourseIds);
        return config;
    }
}
